<?php

namespace app\admin\controller;

use think\facade\Db;
use think\facade\Request;

class Goods extends Common
{

    public function cats()
    {
        $lists = Db::name('goods_cats')->select();
        // echo json_encode(ara)
        // echo json_encode($lists);
        $arr = array(
            'id' => 1,
            'data' => $lists
        );
        echo json_encode($arr);
    }
}
